<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>用户管理</title>
	<%@ include file="/view/common/tags.jsp"%>
	<script type="text/javascript" src="${sysManagerV1}/js/My97DatePicker/WdatePicker.js"> </script>
</head>
<body>
<!-- Main content -->
<section class="content"> 
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN SAMPLE TABLE PORTLET-->
                <div class="box">
                    <div class="box-body">
                       <div class="panel panel-default">
                            <div class="panel-body" style="padding-bottom:5px;">
                                <form class="form-horizontal" action="${sysManagerV1 }/loginlog/" method="post" id="dataForm">
                                <input id="roleNameList" type="hidden" value="${roleNameList}" >
                                      <div class="searchMenu">
                                     	 	<div>
                                     	 	<label>员工角色：</label>
	                                            <sk:select cssClass="form-control select" id="staffType" name="wm[STAFF_TYPE]" value="${page.wm.STAFF_TYPE}" requiredInit="true" ajaxURL="${sysManagerV1}/role/role_dict?wm[_NOT_EQUAL$ROLE_TYPE]=0">
	                                                <option value="">请选择</option>
	                                            </sk:select>
	                                        </div>
	                                        <div>
	                                      	<label>员工名称：</label>
	                                            <input type="text" class="form-control" name="wm[_LIKE$STAFF_NAME]" value="${page.wm._LIKE$STAFF_NAME}"  placeholder="请输入员工名称">
	                                        </div>
	                                        <div>
	                                        <label style="width:120px;">最后登录时间：</label>
	                                            <input id="createTimeStart" name="wm[_MORE_EQUAL$LAST_LOGIN_TIME]" value="${page.wm._MORE_EQUAL$LAST_LOGIN_TIME }"  type="text"  class="Wdate" 
												  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 00:00:00',alwaysUseStartDate:true,maxDate:'#F{$dp.$D(\'createTimeEnd\')}',minDate:'#F{$dp.$D(\'createTimeEnd\',{d:-30,H:-23,m:-59,s:-59})}'})" /> 
												  <span class="pull-left">&nbsp;-&nbsp;</span>
												 <input id="createTimeEnd" name="wm[_LESS_EQUAL$LAST_LOGIN_TIME]" value="${page.wm._LESS_EQUAL$LAST_LOGIN_TIME }"  class="Wdate" 
									               onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 23:59:59',alwaysUseStartDate:true,minDate:'#F{$dp.$D(\'createTimeStart\')}',maxDate:'#F{$dp.$D(\'createTimeStart\',{d:+30,H:+23,m:+59,s:+59})}'})" />
	                                        </div>
	                                        <div style="margin-left:10px;">
	                                            <button type="button"  class="btn btn-primary btn-sm"  onclick="findData()"><span class='glyphicon glyphicon-search'></span>查&nbsp;询</button>
	                                        	<sk:button type="button"  rightKey="20170805134951" _class="btn btn-success btn-sm"  onclick="add()"><span class='glyphicon glyphicon-plus'></span>添&nbsp;加</sk:button>
	                                        </div>
                                       </div>
                                </form>
                            </div>
                        </div>
                        
                        <table class="table table-hover table-condensed table-bordered table-striped" id="dataTable" >
                            <thead>
                                <tr>
                                	<th data-field="index" data-align="center" data-formatter="indexFormatter" data-sortable="false">序号</th>
                                    <th data-field="staffAccount" data-align="center" data-sortable="true">员工帐号</th>
                                    <th data-field="staffType" data-align="center" data-formatter="staffTypeFormatter" data-sortable="true">员工角色</th>
                                    <th data-field="staffName" data-align="center"   data-sortable="true">员工名称</th>
                                    <th data-field="qq" data-align="center" data-sortable="true">QQ号码</th>
                                    <th data-field="phone" data-align="center" data-sortable="true">手机号码</th>
                                    <th data-field="useFlag" data-align="center" data-formatter="useFlagFormatter" data-sortable="true">是否启用</th>
                                    <th data-field="lastLoginTime" data-align="center"  data-formatter="timeFormatter_point" data-sortable="true">最后登录时间</th>
                                    <th data-field="deleteButton" data-align="center"  data-formatter="buttonFormatter" data-sortable="false">操作</th>
                                </tr>
                            </thead>
                        </table>

                    </div>
                </div>
            </div>
            <!-- END SAMPLE TABLE PORTLET-->
            </div>
        </div>
</section>
<%@ include file="/view/common/footer.jsp"%>
<script type="text/javascript" src="${sysManagerV1}/view/js/system/staff_list.js"></script>
</body>
<script type="text/javascript">
// 提示信息
var msgg='<%=request.getAttribute("msg")%>';
if( msgg && msgg!=null && msgg!='null'){ 
	  layer.info(msgg, {icon: 1});
}

</script>
</html>